<template>
  <el-descriptions
    :column="1"
    
    border
  >
    <el-descriptions-item>
      <template slot="label" style='width: 80px'>
        <i class="el-icon-position"></i>
        实体链接
      </template>
        <el-tag size="small" v-for="item in entities" :key="item">{{item}}</el-tag>
    </el-descriptions-item>

    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-view"></i>
        关系分类
      </template>
      <el-tag size="small" v-for="item in relations" :key="item">{{item}}</el-tag>
    </el-descriptions-item>
  </el-descriptions>
</template>

<script>
export default {
    name: 'descriptions',
    data() {
        return {
        }
    },
    props:['entities', 'relations'], //entities为候选实体列表，relation为识别的关系
}
</script>

<style scoped>
.small-title {
    width: 80px;
}
.el-tag+.el-tag {
    margin-left: 5px;
    margin-top: 5px
}
</style>